package sjtu.ist.warehouse4ws.service;

import java.util.List;

import sjtu.ist.warehouse4ws.model.Fileinfo;
import sjtu.ist.warehouse4ws.vo.FullSearchVO;



public interface FileInfoService {
	List<Fileinfo> getFileInfoList();
	
	void saveFileInfo(Fileinfo fileInfo,int companyId);	
	
	void updateFileInfo(Fileinfo fileInfo, int companyId);
	List<Fileinfo> searchFileInfo(String keyWord);//模型普通搜索
	List<Fileinfo> searchDetailFileInfo(String keyWord1, String keyWord2, String keyWord3,
										String keyWord4, String keyWord5, String keyWord6);//模型高级搜索
	List<Fileinfo> findFileInfoByName(String fileName);
	List<FullSearchVO> getAllFullSearchResult(String keyWord);
	List<FullSearchVO> getAllDetailSearchResult(String keyWord1, String keyWord2, String keyWord3,
										String keyWord4, String keyWord5, String keyWord6);
	Fileinfo getFileInfo(String id,int companyId);
	void deleteFileInfo(String id);
	List<Fileinfo> findFileInfoByGroupId(String groupId);
	List<Fileinfo> findFileInfoByProject(String project);
	
	List<Fileinfo> findFileId(String fileName,String project,int type);
	
	String getTypeById(int type);
}
